#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/12/27 20:51
# @Author: 周健
# @Email: 907614893@qq.com
# @File：hot_page.py
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By

class HotPage(BasePage):
    dangao_locator = (By.XPATH,'//android.widget.EditText[@resource-id=\"com.gfeng.daydaycook:id/searchEt\"]')
    # 获取蛋糕搜索框内容
    def get_dangao_text(self):
        return self.driver.find_element(*self.dangao_locator).text